package com.sdutcm.xuake.xuanke_demo.dao;

import com.sdutcm.xuake.xuanke_demo.bean.XuanKe;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

/**
 * Created with IntelliJ IDEA.
 *
 * @author 小浩
 * @date 2018-09-20 01:02
 * @package com.sdutcm.xuake.xuanke_demo.dao
 * @description
 */
public interface XuanKeDao extends JpaRepository<XuanKe,Integer> {
    @Modifying
    int deleteByXuehaoAndKechengming(int xuehao,String kechengming);

    XuanKe findByXuehaoAndAndKechengming(int xuehao,String kechengming);
}
